package org.grottarossa.ui.core.casemanagement.tasks;


import java.util.ResourceBundle;

import org.grottarossa.ui.core.ApplicationSession;
import org.grottarossa.ui.core.base.BasePanel;
import org.grottarossa.ui.core.i18n.DM;

import com.vaadin.data.util.BeanItem;
import com.vaadin.ui.Form;
import com.vaadin.ui.Panel;

public class TaskPanel extends BasePanel
{
	private static final long serialVersionUID = 7533006732809818177L;
	TaskForm form = null;

	public TaskPanel(ApplicationSession appSession, TaskLess task)
	{
		super(appSession, DM.instance().getBundle(TaskPanel.class.getName()));
		setCaption(m_localizer.getString("task.panel.caption"));
		BeanItem<TaskLess> taskBeanItem = new BeanItem<TaskLess>(task);
		form = new TaskForm(m_appSession, taskBeanItem);
		addComponent(form);
		setSizeUndefined();
	}

	public Form getForm()
	{
		return form;
	}

	@Override
	protected void initializeComponents() {
		// TODO Auto-generated method stub

	}
}
